﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MaLu.Common;
using MaLu.Data;

namespace MaluJg.web.Poverty
{
    public partial class PovIndex : ProvertyPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                tbYear.Text = Year.ToString();
                ddlVillage.DataSource = SqlHelper.Instance.ExecuteDataTable(Provider, "select * from pDicVillages");
                ddlVillage.DataTextField = "name";
                ddlVillage.DataValueField = "id";
                ddlVillage.DataBind();

                ddlVillage.Items.Insert(0, new ListItem("全部", "0"));

            }
        }
    }
}
